package com.xsr.aspect;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * @author 邢式瑞
 * @version 1.0
 * @project gp14Sm
 * @date 2022/9/7 17:33
 */
@Component
@Aspect
public class BeforeAdvice {
    @Pointcut(value = "execution(* *..UserServiceImpl.*(..))")
    public  void pointCut(){}
    @Before(value = "pointCut()")
    public  void beforeAdvice(){
        System.out.println("写日志");
    }
}
